package demo.mainframe;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

import demo.core.runtime.extension.AbstractActivator;
import demo.core.runtime.extension.Context;
import demo.core.runtime.platform.Platform;
import demo.mainframe.extendpoint.IButtonItem;
import demo.mainframe.frame.MainFrame;

public class Activator extends AbstractActivator {
	
	@Override
	public void start(Context context) throws Exception {
		context.registerExtendPoint(IButtonItem.class.getName());
		Platform.getPointRegTable().addListener(new MainFrame());		
	}

	@Override
	public void stop(Context context) throws Exception {
		// TODO Auto-generated method stub		
	}

}
